﻿<navigation:Page x:Class="SlvPartecipazione.Invito" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:this="clr-namespace:SlvPartecipazione"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="1600" d:DesignHeight="1000"
           Title="Invito Page">
    <UserControl.Resources>
        <Style x:Key="_imageStyle"
           TargetType="Image">
            <Setter Property="Margin"
              Value="800,200,0,0" />
            <Setter Property="Width"
              Value="800" />
            <Setter Property="Stretch"
              Value="Uniform" />
        </Style>
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/SlvPartecipazione;component/IMG/sfondo-invito.png" Stretch="UniformToFill" />
        </Grid.Background>
        <Canvas x:Name="Wall" Width="1600" Height="1000">
            <Canvas.Resources>
                <Storyboard x:Name="sbCopertinaBW">
                    <DoubleAnimation Storyboard.TargetName="copertinaBW" Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:2" AutoReverse="True" RepeatBehavior="Forever" />
                </Storyboard>
            </Canvas.Resources>
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform x:Name="WallStretch" CenterX="0" CenterY="0"></ScaleTransform>
                    <TranslateTransform x:Name="WallTranslate"></TranslateTransform>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image Name="invitoCena" Style="{StaticResource _imageStyle}"
           Source="IMG/2.png"
           MouseLeftButtonUp="FlipImage" Cursor="Hand" />
            <Image Name="invitoChiesa" Style="{StaticResource _imageStyle}"
           Source="IMG/1.png"
           MouseLeftButtonUp="FlipImage" Cursor="Hand" />
            <Image Name="copertina" Style="{StaticResource _imageStyle}"
           Source="IMG/0.jpg"
           MouseLeftButtonUp="FlipImage" Cursor="Hand" />
            <Image Name="copertinaBW" Style="{StaticResource _imageStyle}"
           Source="IMG/0bis.jpg" Cursor="Hand" MouseLeftButtonUp="copertinaBW_MouseLeftButtonUp" />

            <TextBlock Height="23" HorizontalAlignment="Left" Margin="48,160,0,0" Name="txbInvitato" Text="Gentilissimi " VerticalAlignment="Top" Width="720" Foreground="#FF5E38C2" FontFamily="Lucida Sans Unicode" FontSize="20" FontWeight="Medium" />
            <TextBlock Height="23" Margin="780,937,353,41" Name="txbSalva" Text="Salva invito" Visibility="Collapsed" Foreground="#FF6D43D3" FontWeight="Normal" MouseLeftButtonUp="txbSalva_MouseLeftButtonUp" FontSize="14" Cursor="Hand"/>

            <!--<TextBlock Height="23" HorizontalAlignment="Left" Margin="1550,812,0,0" Name="textBlock4" Text="Sfoglia" VerticalAlignment="Top" Foreground="#FF4E29AE" />-->    
        </Canvas>
        <MediaElement x:Name="sottofondo" AutoPlay="False" ></MediaElement>
        <!--<TextBlock Height="20" HorizontalAlignment="Left" Margin="764,815,0,0" Name="textBlock2" Text="1" VerticalAlignment="Top" Width="20" TextAlignment="Center" />
        <TextBlock Height="20" HorizontalAlignment="Left" Margin="790,815,0,0" Name="textBlock1" Text="2" VerticalAlignment="Top" Width="20" TextAlignment="Center" />
        <TextBlock Height="20" HorizontalAlignment="Left" Margin="816,815,0,0" Name="textBlock3" Text="3" VerticalAlignment="Top" Width="20" TextAlignment="Center" />-->
        
    </Grid>   

</navigation:Page>
